from appium.webdriver.common.appiumby import AppiumBy

from base.home_base import HomeBase
from appium.webdriver import Remote

from config.common_driver import CommonDriver
from page.authorize_page import AuthorizePage


class HomePage(HomeBase):
    def search_bar_click(self,driver:Remote):
        search_bar_xpath = self.search_bar()
        return self.click_new(driver,AppiumBy.XPATH,search_bar_xpath)

if __name__ == '__main__':
    driver=CommonDriver().get_driver()
    AuthorizePage().authorize_setup(driver)
    HomePage().search_bar_click(driver)